﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Xml;
using InkML;
using Microsoft.Ink;


namespace Sauvegarde
{
    class EnregistrementPAN
    {


        public EnregistrementPAN()
        {
        }

        //isf2inkml

        //TODO a adapter avec le zip
        public void enregistrer(Microsoft.Ink.Ink encre,string url)
        {
            ISF2InkML converter = new ISF2InkML();
            converter.ConvertToInkML(encre,url);
        }




        //inkml2isf

        public Microsoft.Ink.Ink Ouverture(string url)
        {
            InkML2ISF converter = new InkML2ISF();

            //TODO à adapter pour le zip
            converter.ConvertToInk(url);
            Microsoft.Ink.Ink encre = converter.ISFInk;
            return encre;
        }
    }
}